package com.feiyi.app.bean;

import java.util.List;

/**
 * @author wangliantao
 * @time 2018 11 2018/11/18 10:11 PM
 * @email 1346947404@qq.com
 * @package com.feiyi.app.bean
 * @describe： 获取的地区实体类
 * In me the tiger sniffs the rose
 */
public class RegionBean {


    /**
     * data : {"more":1,"regions":[{"id":"2","name":"北京","parent_id":null},{"id":"3","name":"安徽","parent_id":null},{"id":"4","name":"福建","parent_id":null},{"id":"5","name":"甘肃","parent_id":null},{"id":"6","name":"广东","parent_id":null},{"id":"7","name":"广西","parent_id":null},{"id":"8","name":"贵州","parent_id":null},{"id":"9","name":"海南","parent_id":null},{"id":"10","name":"河北","parent_id":null},{"id":"11","name":"河南","parent_id":null},{"id":"12","name":"黑龙江","parent_id":null},{"id":"13","name":"湖北","parent_id":null},{"id":"14","name":"湖南","parent_id":null},{"id":"15","name":"吉林","parent_id":null},{"id":"16","name":"江苏","parent_id":null},{"id":"17","name":"江西","parent_id":null},{"id":"18","name":"辽宁","parent_id":null},{"id":"19","name":"内蒙古","parent_id":null},{"id":"20","name":"宁夏","parent_id":null},{"id":"21","name":"青海","parent_id":null},{"id":"22","name":"山东","parent_id":null},{"id":"23","name":"山西","parent_id":null},{"id":"24","name":"陕西","parent_id":null},{"id":"25","name":"上海","parent_id":null},{"id":"26","name":"四川","parent_id":null},{"id":"27","name":"天津","parent_id":null},{"id":"28","name":"西藏","parent_id":null},{"id":"29","name":"新疆","parent_id":null},{"id":"30","name":"云南","parent_id":null},{"id":"31","name":"浙江","parent_id":null},{"id":"32","name":"重庆","parent_id":null},{"id":"33","name":"香港","parent_id":null},{"id":"34","name":"澳门","parent_id":null},{"id":"35","name":"台湾","parent_id":null}]}
     * status : {"succeed":1}
     */

    private DataBean data;
    private StatusBean status;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public StatusBean getStatus() {
        return status;
    }

    public void setStatus(StatusBean status) {
        this.status = status;
    }

    public static class DataBean {
        /**
         * more : 1
         * regions : [{"id":"2","name":"北京","parent_id":null},{"id":"3","name":"安徽","parent_id":null},{"id":"4","name":"福建","parent_id":null},{"id":"5","name":"甘肃","parent_id":null},{"id":"6","name":"广东","parent_id":null},{"id":"7","name":"广西","parent_id":null},{"id":"8","name":"贵州","parent_id":null},{"id":"9","name":"海南","parent_id":null},{"id":"10","name":"河北","parent_id":null},{"id":"11","name":"河南","parent_id":null},{"id":"12","name":"黑龙江","parent_id":null},{"id":"13","name":"湖北","parent_id":null},{"id":"14","name":"湖南","parent_id":null},{"id":"15","name":"吉林","parent_id":null},{"id":"16","name":"江苏","parent_id":null},{"id":"17","name":"江西","parent_id":null},{"id":"18","name":"辽宁","parent_id":null},{"id":"19","name":"内蒙古","parent_id":null},{"id":"20","name":"宁夏","parent_id":null},{"id":"21","name":"青海","parent_id":null},{"id":"22","name":"山东","parent_id":null},{"id":"23","name":"山西","parent_id":null},{"id":"24","name":"陕西","parent_id":null},{"id":"25","name":"上海","parent_id":null},{"id":"26","name":"四川","parent_id":null},{"id":"27","name":"天津","parent_id":null},{"id":"28","name":"西藏","parent_id":null},{"id":"29","name":"新疆","parent_id":null},{"id":"30","name":"云南","parent_id":null},{"id":"31","name":"浙江","parent_id":null},{"id":"32","name":"重庆","parent_id":null},{"id":"33","name":"香港","parent_id":null},{"id":"34","name":"澳门","parent_id":null},{"id":"35","name":"台湾","parent_id":null}]
         */

        private int more;
        private List<RegionsBean> regions;

        public int getMore() {
            return more;
        }

        public void setMore(int more) {
            this.more = more;
        }

        public List<RegionsBean> getRegions() {
            return regions;
        }

        public void setRegions(List<RegionsBean> regions) {
            this.regions = regions;
        }

        public static class RegionsBean {
            /**
             * id : 2
             * name : 北京
             * parent_id : null
             */

            private String id;
            private String name;
            private Object parent_id;
            private boolean isSelected;

            public boolean isSelected() {
                return isSelected;
            }

            public void setSelected(boolean selected) {
                isSelected = selected;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Object getParent_id() {
                return parent_id;
            }

            public void setParent_id(Object parent_id) {
                this.parent_id = parent_id;
            }
        }
    }

    public static class StatusBean {
        /**
         * succeed : 1
         */

        private int succeed;

        public int getSucceed() {
            return succeed;
        }

        public void setSucceed(int succeed) {
            this.succeed = succeed;
        }
    }
}
